package main

import (
	"fmt"
	"regexp"
)

func main8() {
	reg := regexp.MustCompile(`(\d{4})(\d{2})(\d{2})`)

	fmt.Println(reg.ReplaceAllString("20221201", "$1-$2-$3"))
}
